/**
 * 封装电影票
 * @param currentVal 场次
 * @param price 价格
 * @param position 位置
 * @param remainCnt 总量
 * @returns
 */
function Tickets(currentVal, price, position, remainCnt,priceId){
	this.currentVal = currentVal;
	this.price = price;
	this.position = position;
	this.remainCnt = remainCnt;
	this.priceId = priceId;
}

/**
 * 转成字符窜类型
 * @returns {String}
 */
Tickets.prototype.getDataString=function(){
	var returnString='{';
	var isFirst=true;
		
	for(var  i in this ){
		//number,boolean,string
		if(typeof this[i]=='number'||typeof this[i]=='boolean'||typeof this[i]=='string'){
			if(!isFirst){
				returnString+=',';
			}else{
				isFirst=false;
			}
			returnString+=i+':"'+this[i]+'"';
		}
	}
	returnString+='}';
	return returnString;
}